package com.cody.service;

import com.cody.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Cody
 * @date 2021/4/7 - 20:26
 */
public interface TeacherService {
    List<Teacher> queryAllTeacher();
    Teacher querySingleTeacher(String teaName,String teaPassword);
    Teacher querySingleTeacherByTeacherNumber(String teacherNumber);
    boolean insertSingleTeacher(Teacher teacher);
    boolean updateTeacherInfo(Teacher teacher);
    List<Teacher> queryTeacherByKeyword(@Param("keyword") String keyword);
    boolean updateTeacherPwd(String teacherNumber ,String teacherPassword);
    boolean delTeacherByTeacherId(Integer teacherId);
}
